package com.example.blogapi.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.HashMap;

@Configuration
public class FakeRedisConfig {
    @Bean
    public HashMap<String,String> fakeRedis(){
        HashMap<String, String> fakeRedis = new HashMap<>();
        fakeRedis.put("1","这是一条测试数据");
        return fakeRedis;
    }
}
